package com.example.spring_project.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
@ToString
public class User {
    @TableId(value = "uid",type = IdType.ASSIGN_ID)
    private int uid;
    private String uname;
    private String password;
    private String email;
    private int age;
    private String gender;
    private Date createdAt;
    private Date updatedAt;
}
